home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / DomonicDefence4.swf / scripts / DefineButton2_1493 / BUTTONCONDACTION on(release).as next >
Encoding:
Text File  |  2005-09-27  |  311 b   |  17 lines

  1. on(release){
  2.    if(_root.money >= 5000 && _root.lightSpell != 1)
  3.    {
  4.       _root.lightSpell = 1;
  5.       messo = "Got Lightning!";
  6.       _root.money -= 5000;
  7.    }
  8.    else if(_root.lightSpell == 1)
  9.    {
  10.       messo = "Already have it!";
  11.    }
  12.    else
  13.    {
  14.       messo = "Not enough money!";
  15.    }
  16. }
  17.